﻿using Microsoft.AspNetCore.SignalR;

namespace WebServer.Hubs
{
    public class DbHub(IFreeSql freeSql) : Hub
    {
        public List<object> Select(object select, string type)
        {
            var t = Type.GetType(type);
            return freeSql.Select<object>().AsType(t).ToList();
        }
    }
}
